from rest_framework.serializers import ModelSerializer
from misc.models import QuestionAnswer, RSAPublicKey, Text, UpgradePackageDelivery, UpgradePackageResult


class QuestionAnswerSerializer(ModelSerializer):

    class Meta:
        model = QuestionAnswer
        fields = '__all__'


class RSAPublicKeySerializer(ModelSerializer):

    class Meta:
        model = RSAPublicKey
        fields = '__all__'


class TextSerializer(ModelSerializer):

    class Meta:
        model = Text
        fields = '__all__'


class UpgradePackageDeliverySerializer(ModelSerializer):

    class Meta:
        model = UpgradePackageDelivery
        fields = '__all__'


class UpgradePackageResultSerializer(ModelSerializer):

    class Meta:
        model = UpgradePackageResult
        fields = '__all__'
